package cn.tedu.clubplus.controller;

import cn.tedu.clubplus.entity.ClubType;
import cn.tedu.clubplus.mapper.ClubTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ClubTypeController {
    @Autowired
    ClubTypeMapper mapper;
    @RequestMapping("/type/select")
    public List<ClubType> select(){
        return mapper.select();
    }
}
